﻿using System.Windows.Forms;

namespace Mazeball
{
    public partial class MainForm : Form
    {
        //readonly Game _game;
        
        public MainForm()
        {

            InitializeComponent();

            #region populate settings here
            GameSettings.Columns = 10;
            GameSettings.Rows = 10;
            GameSettings.GridBorderWidth = 20;
            GameSettings.GridLineWidth = 4;
            GameSettings.BallSize = 0.9f;
            #endregion
            
            //_game = new Game();
            Game.Initialize();
        }


        protected override void OnPaint(PaintEventArgs e)
        {
            Game.Render(e.ClipRectangle, e.Graphics);
        }

        private void MainForm_Click(object sender, System.EventArgs e)
        {
            Game.HandleClick(PointToClient(MousePosition));
        }
    }
}